package huge

import (
	"github.com/gin-gonic/gin"
	"qm_system_server/server/api/v1"
	"qm_system_server/server/middleware"
)

type QmAccessTokensRouter struct {
}

// InitQmAccessTokensRouter 初始化 qmAccessTokens表 路由信息
func (s *QmAccessTokensRouter) InitQmAccessTokensRouter(Router *gin.RouterGroup) {
	qmAccessTokensRouter := Router.Group("qmAccessTokens").Use(middleware.OperationRecord())
	qmAccessTokensRouterWithoutRecord := Router.Group("qmAccessTokens")
	var qmAccessTokensApi = v1.ApiGroupApp.HugeApiGroup.QmAccessTokensApi
	{
		qmAccessTokensRouter.POST("createQmAccessTokens", qmAccessTokensApi.CreateQmAccessTokens) // 新建qmAccessTokens表
		qmAccessTokensRouter.PUT("updateQmAccessTokens", qmAccessTokensApi.UpdateQmAccessTokens)  // 更新qmAccessTokens表
	}
	{
		qmAccessTokensRouterWithoutRecord.GET("findQmAccessTokens", qmAccessTokensApi.FindQmAccessTokens) // 根据ID获取qmAccessTokens表
		qmAccessTokensRouterWithoutRecord.POST("getInfo", qmAccessTokensApi.GetInfo)
		qmAccessTokensRouterWithoutRecord.POST("getUserPlatform", qmAccessTokensApi.GetUserPlatform)
		qmAccessTokensRouterWithoutRecord.POST("getAccountData", qmAccessTokensApi.GetAccountData)
	}
}
